import {LOGIN_PAGE} from './config.js'

export const checkLogin = () => {
	let token = uni.getStorageSync('token')
	if (!token) {
		uni.reLaunch({
			url: LOGIN_PAGE
		})
		return false
	}
	// TODO 获取用户信息，设置用户信息
}